package com.xiaoxin.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaoxiaode
 * @date 2021-08-28-19:26
 **/
@Data
    public abstract class BasePojo  implements Serializable {
        @TableField(fill= FieldFill.INSERT)//自动填充
        private  Date created;
        @TableField(fill=FieldFill.INSERT_UPDATE)
        private  Date updated;
}
